exercise 6.8 question no 1 (part 1 to 5)